<h1>New Product</h1>

<% form_for :product, :url => { :action => "create" }, :html => { :multipart => true, :id => "a_form" } do |@f| %>
    <h2>Name</h2>
    <%= @f.text_field :name, :class => "required" %>
    <h2>Retailer Name</h2>
    <%= @f.text_field :retailer, :class => "required" %>
    <h2>Price (USD)</h2>
    <%= @f.text_field :price, :class => "validate-currency-dollar" %>
    <h2>Store or Product URL</h2>
    <%= @f.text_field :url, :class => "validate-url" %>    
    <h2>Image</h2>
    <input type="file" size="30" name="product_shot[uploaded_data]" id="product_shot_uploaded_data" class="required"/>
    <br /><br />
    <%= submit_tag :save %>
<% end %>

<script type="text/javascript">
     new Validation('a_form'); // OR new Validation(document.forms[0]);
</script>